package com.study.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CommonDao {
    int insertSelective(@Param("tableName") String tableName, @Param("params") Map<String, Object> params);

    int updateByPrimaryKeySelective(@Param("tableName") String tableName,@Param("params")Map<String, Object> params);

    List<Map<String,Object>> selectForList(Map<String, Object> conditions);

    List<Map<String,Object>> selectForMap(Map<String, Object> conditions);

    Map<String,Object> selectTodayWeight(Map<String,Object> conditions);

    List<Map<String,Object>> selectTopDayWeight(Map<String,Object> conditions);
}
